home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / TowerOfHanoy.dxr / 00049_Game Behavior 6.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  477 b   |  20 lines

  1. global gLeftTowerList, gCenterTowerList, gRightTowerList, gReleaseBall, gLevel, gDiscNum, gMoves, gPlaced, gMoveFix
  2.  
  3. on exitFrame
  4.   MovePiece()
  5.   go(the frame)
  6. end
  7.  
  8. on mouseUp
  9.   if gReleaseBall = 0 then
  10.     gReleaseBall = 1
  11.     sprite(gDiscNum).locZ = gDiscNum
  12.     gMoveFix = 1
  13.     stack()
  14.     checkwin()
  15.   end if
  16.   member("LeftText").text = string(gLeftTowerList)
  17.   member("CenterText").text = string(gCenterTowerList)
  18.   member("RightText").text = string(gRightTowerList)
  19. end
  20.